package com.fx.common.api;

import com.fx.common.domain.ImageCode;
import com.fx.common.domain.R;
import com.fx.common.intercept.AuthBearerIntercept;
import com.github.lianjiatech.retrofit.spring.boot.annotation.Intercept;
import com.github.lianjiatech.retrofit.spring.boot.annotation.Intercepts;
import com.github.lianjiatech.retrofit.spring.boot.annotation.RetrofitClient;
import retrofit2.http.GET;

@RetrofitClient(baseUrl = "${fx.baseUrl}")
@Intercepts(value = {
        @Intercept(handler = AuthBearerIntercept.class, exclude = "/codeImage")
})
public interface FxAuthServer {

    @GET("codeImage")
    public R<ImageCode> getImageCode();

}
